<?php
/**
 * SocialEngine
 *
 * @category   Application_Extensions
 * @package    Album
 * @copyright  Copyright 2006-2010 Webligo Developments
 * @license    http://www.socialengine.net/license/
 * @version    $Id: Global.php 7244 2010-09-01 01:49:53Z john $
 * @author     Jung
 */

/**
 * @category   Application_Extensions
 * @package    Album
 * @copyright  Copyright 2006-2010 Webligo Developments
 * @license    http://www.socialengine.net/license/
 */
class Visits_Form_Admin_Global extends Engine_Form
{
  public function init()
  {
    $this
      ->setTitle('Global Settings')
      ->setDescription('Settings for your Visits Plugin.');


    $this->addElement('Text', 'visits_page', array(
      'label' => 'Users Per Page',
      'description' => 'How many users will be shown per page?',
      'required' => true,
      'value' => 9
    ));
    
    $this->addElement('Radio', 'visits_notifications', array(
      'label' => 'Notification Updates?',
      'required' => true,
      'description' => 'The application connects to your server (using AJAX) every 1 minute to check if there are any new notifications to display.',
      'multiOptions' => array(
        1 => 'Enable',
        0 => 'Disable'
      ),
      'value' => 1
    ));

    // Add submit button
    $this->addElement('Button', 'submit', array(
      'label' => 'Save Changes',
      'type' => 'submit',
      'ignore' => true,
    ));
  }
}